using CommandLine;
using System;

namespace InvokeDeviceMethod
{
    /// <summary>
    /// Command line parameters for the InvokeDeviceMethod sample
    /// </summary>
    internal class Parameters
    {
        [Option(
            'c',
            "HubConnectionString",
            HelpText = "The IoT Hub connection string. This is available under the \"Shared access policies\" in the Azure portal." +
            "\nDefaults to value of environment variable IOTHUB_CONNECTION_STRING.")]
        public string HubConnectionString { get; set; } = Environment.GetEnvironmentVariable("IOTHUB_CONNECTION_STRING");

        [Option(
            'd',
            "DeviceId",
            Required = false,
            HelpText = "The Id of the device to receive the direct method." +
            "\nDefaults to \"MyDotnetDevice\".")]
        public string DeviceId { get; set; } = "MyDotnetDevice";
    }
}